package cn.wolfcode.tieba.service;

import cn.wolfcode.tieba.domain.Reply;
import cn.wolfcode.tieba.query.ReplyQuery;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;


/**
 * 回复表服务接口
 */
public interface IReplyService extends IService<Reply>{
    /**
    * 分页
    * @param qo
    * @return
    */
    IPage<Reply> queryPage(ReplyQuery qo);

    /**
     * 获取指定帖子下的所有评论
     * @param postedId
     * @return
     */
    List<Reply> listById(Long postedId);
}
